package com.jd.nbd.strategy05;

/**
 * Created by liyue on 2017/8/24
 */
public class CheckNameIsEmptyRule implements Rule {
  /**
   * 校验姓名是否为空
   * @param person
   * @return
   */
  @Override
  public boolean doValidate(Person person) {
    if (person.getName() == null || "".equals(person.getName())) {
      return false;
    }
    return true;
  }
}
